namespace game {
    export function RegistAllHandle(handleMgr: core.IMessageHandleMgr) {
        handleMgr.RegisterHandle(Protocol.MSG_LoginResponse_SC_Index, on_MSG_LoginResponse_SC)
        handleMgr.RegisterHandle(Protocol.MSG_QuickStarGame_SC_Index, on_MSG_QuickStarGame_SC)
        handleMgr.RegisterHandle(Protocol.MSG_GameData_SC_Index, on_MSG_GameData_SC)
        handleMgr.RegisterHandle(Protocol.MSG_UpdateUserTransfrom_SC_Index, on_MSG_UpdateUserTransfrom_SC)
    }

    function on_MSG_LoginResponse_SC(cmd: msg.MSG_LoginResponse_SC) {
        Instance.LoginResponse(cmd)
    }

    function on_MSG_QuickStarGame_SC(cmd: msg.MSG_QuickStarGame_SC) {
        Instance.JoinGame()
    }

    function on_MSG_GameData_SC(cmd: msg.MSG_GameData_SC){
        Instance.OnGetGameData(cmd)
    }

    function on_MSG_UpdateUserTransfrom_SC(cmd: msg.MSG_UpdateUserTransfrom_SC){
        Instance.UpdateUserTransfrom(cmd)
    }
}